<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Home extends CI_Controller {

    /**
     * Index action 
     * @author tien.nguyen
     */
    public function index() {
        //instance model
        $this->load->model('Products', '', true);
        //$this->load->model('News', '', true);
        $this->load->model('Customers', '', true);               

        //load data by model 
        $data['Products'] = $this->Products->getListIndex();
        //$data['News'] = $this->News->getListIndex();
        $data['Customers'] = $this->Customers->getListIndex();
        $this->load->view('index/index', $data);
    }

}